//index.js
import API from "../../api/index";
const app = getApp();
Page({
  data: {
    caseImg: ['/static/images/index04.png', '/static/images/index05.png', '/static/images/index06.png', '/static/images/index07.png']
  },
  gotoCase(){
    wx.switchTab({
      url:'/pages/case/case'
    })
  },
  onShow() {
    this._getData()
  },
  _getData() {
    API.getIndices().then(res => {
      console.log(res)
      this.setData(res.data)

    })
  }
})
